package com.kuang.method;

/**
 * @author wuJiaWei
 * @version 1.0
 * @date 2024/8/9
 * @time 14:26:32
 */
public class Demo02 {
    public static void main(String[] args) {
        int sum = max(1, 2);
        double sum2 = max(1.1, 2.2);
        System.out.println(sum);
        System.out.println(sum2);
    }
    public static int max(int a, int b) {
        return a > b ? a : b;
    }
    public static double max(double a, double b) {
        return a > b ? a : b;
    }


}
